// Array.apply(null, { length: 20 }).map(function (e) {
//   return console.log(e, 'p', 'hi')
// })

// console.log(Array.apply(null, { length: 20 }));


const list = { "code": 0, "data": { "count": 2, "list": [{ "_id": "5f5f58b4e6aff02cc1b5e6e3", "name": "167FBADC352B6D0E", "deviceid": "167FBADC352B6D0E", "createdAt": 1600084148915, "updatedAt": 1600084148915, "__v": 0 }, { "_id": "5f5f58a6e6aff02cc1b5e6e1", "name": "0E774F2F923AC995", "deviceid": "0E774F2F923AC995", "createdAt": 1600084134025, "updatedAt": 1600084134025, "__v": 0 }], "pageSize": 10, "currentPage": 1 }, "msg": "请求成功" }

const res = list.data.list.map(e => e.deviceid === '167FBADC352B6D0E' ? e.deviceid : null).filter(e => e)
console.log(res);